package com.okyai.cms.domain;

import java.util.Date;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.okyai.common.annotation.Excel;
import com.okyai.common.core.domain.TreeEntity;

/**
 * 分类对象 cms_category
 * 
 * @author okyai
 * @date 2020-12-07
 */
public class CmsCategory extends TreeEntity
{
    private static final long serialVersionUID = 1L;

    /**  */
    private Long id;

    /** 栏目名称 */
    @Excel(name = "栏目名称")
    private String categoryTitle;

    /** 缩略图 */
    @Excel(name = "缩略图")
    private String categoryImg;

    /** 栏目属性 */
    @Excel(name = "栏目属性")
    private String categoryFlag;

    /** 栏目管理描述 */
    @Excel(name = "栏目管理描述")
    private String categoryDescrip;

    /** 栏目管理关键字 */
    @Excel(name = "栏目管理关键字")
    private String categoryKeyword;

    /** 栏目路径 */
    @Excel(name = "栏目路径")
    private String categoryPath;

    /** 应用编号 */
    @Excel(name = "应用编号")
    private Integer appId;

    /** 发布用户id */
    @Excel(name = "发布用户id")
    private Long categoryManagerId;

    /** 类别发布时间 */
    @Excel(name = "类别发布时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date categoryDatetime;

    /** 栏目管理的内容模型id */
    @Excel(name = "栏目管理的内容模型id")
    private Long mdiyModelId;

    /** 自定义链接 */
    @Excel(name = "自定义链接")
    private String categoryDiyUrl;

    /** 内容模板 */
    @Excel(name = "内容模板")
    private String categoryUrl;

    /** 列表模板 */
    @Excel(name = "列表模板")
    private String categoryListUrl;

    /** 自定义顺序 */
    @Excel(name = "自定义顺序")
    private Long categorySort;

    /** 栏目类型 */
    @Excel(name = "栏目类型")
    private String categoryType;

    /** 所属栏目 */
    @Excel(name = "所属栏目")
    private Long categoryId;

    /** 拼音码 */
    @Excel(name = "拼音码")
    private String categoryPinyin;

    /** 删除标志（0代表存在 2代表删除） */
    private String delFlag;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setCategoryTitle(String categoryTitle) 
    {
        this.categoryTitle = categoryTitle;
    }

    public String getCategoryTitle() 
    {
        return categoryTitle;
    }
    public void setCategoryImg(String categoryImg) 
    {
        this.categoryImg = categoryImg;
    }

    public String getCategoryImg() 
    {
        return categoryImg;
    }
    public void setCategoryFlag(String categoryFlag) 
    {
        this.categoryFlag = categoryFlag;
    }

    public String getCategoryFlag() 
    {
        return categoryFlag;
    }
    public void setCategoryDescrip(String categoryDescrip) 
    {
        this.categoryDescrip = categoryDescrip;
    }

    public String getCategoryDescrip() 
    {
        return categoryDescrip;
    }
    public void setCategoryKeyword(String categoryKeyword) 
    {
        this.categoryKeyword = categoryKeyword;
    }

    public String getCategoryKeyword() 
    {
        return categoryKeyword;
    }
    public void setCategoryPath(String categoryPath) 
    {
        this.categoryPath = categoryPath;
    }

    public String getCategoryPath() 
    {
        return categoryPath;
    }
    public void setAppId(Integer appId) 
    {
        this.appId = appId;
    }

    public Integer getAppId() 
    {
        return appId;
    }
    public void setCategoryManagerId(Long categoryManagerId) 
    {
        this.categoryManagerId = categoryManagerId;
    }

    public Long getCategoryManagerId() 
    {
        return categoryManagerId;
    }
    public void setCategoryDatetime(Date categoryDatetime) 
    {
        this.categoryDatetime = categoryDatetime;
    }

    public Date getCategoryDatetime() 
    {
        return categoryDatetime;
    }
    public void setMdiyModelId(Long mdiyModelId) 
    {
        this.mdiyModelId = mdiyModelId;
    }

    public Long getMdiyModelId() 
    {
        return mdiyModelId;
    }
    public void setCategoryDiyUrl(String categoryDiyUrl) 
    {
        this.categoryDiyUrl = categoryDiyUrl;
    }

    public String getCategoryDiyUrl() 
    {
        return categoryDiyUrl;
    }
    public void setCategoryUrl(String categoryUrl) 
    {
        this.categoryUrl = categoryUrl;
    }

    public String getCategoryUrl() 
    {
        return categoryUrl;
    }
    public void setCategoryListUrl(String categoryListUrl) 
    {
        this.categoryListUrl = categoryListUrl;
    }

    public String getCategoryListUrl() 
    {
        return categoryListUrl;
    }
    public void setCategorySort(Long categorySort) 
    {
        this.categorySort = categorySort;
    }

    public Long getCategorySort() 
    {
        return categorySort;
    }
    public void setCategoryType(String categoryType) 
    {
        this.categoryType = categoryType;
    }

    public String getCategoryType() 
    {
        return categoryType;
    }
    public void setCategoryId(Long categoryId) 
    {
        this.categoryId = categoryId;
    }

    public Long getCategoryId() 
    {
        return categoryId;
    }
    public void setCategoryPinyin(String categoryPinyin) 
    {
        this.categoryPinyin = categoryPinyin;
    }

    public String getCategoryPinyin() 
    {
        return categoryPinyin;
    }
    public void setDelFlag(String delFlag) 
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag() 
    {
        return delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("categoryTitle", getCategoryTitle())
            .append("categoryImg", getCategoryImg())
            .append("categoryFlag", getCategoryFlag())
            .append("categoryDescrip", getCategoryDescrip())
            .append("categoryKeyword", getCategoryKeyword())
            .append("categoryPath", getCategoryPath())
            .append("appId", getAppId())
            .append("categoryManagerId", getCategoryManagerId())
            .append("categoryDatetime", getCategoryDatetime())
            .append("mdiyModelId", getMdiyModelId())
            .append("categoryDiyUrl", getCategoryDiyUrl())
            .append("categoryUrl", getCategoryUrl())
            .append("categoryListUrl", getCategoryListUrl())
            .append("categorySort", getCategorySort())
            .append("categoryType", getCategoryType())
            .append("categoryId", getCategoryId())
            .append("categoryPinyin", getCategoryPinyin())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("delFlag", getDelFlag())
            .toString();
    }
}
